import request from '@/utils/request'

// 查询用户黑名单(一对多)列表
export function listBlacklist(query) {
  return request({
    url: '/user/blacklist/list',
    method: 'get',
    params: query
  })
}

// 查询用户黑名单(一对多)详细
export function getBlacklist(id) {
  return request({
    url: '/user/blacklist/' + id,
    method: 'get'
  })
}

// 新增用户黑名单(一对多)
export function addBlacklist(data) {
  return request({
    url: '/user/blacklist',
    method: 'post',
    data: data
  })
}

// 修改用户黑名单(一对多)
export function updateBlacklist(data) {
  return request({
    url: '/user/blacklist',
    method: 'put',
    data: data
  })
}

// 删除用户黑名单(一对多)
export function delBlacklist(id) {
  return request({
    url: '/user/blacklist/' + id,
    method: 'delete'
  })
}
